import instance from "./axios/requers";
//获取轮播图列表接口
export function getBannerList(){
    return instance.get('admin/banner/list')
}


interface IBanner{
    img:string,
    alt:string,
    link:string
}
//添加轮播图数据接口
export function addBannerList(params:IBanner){
    return instance.post('admin/banner/add',params)
}

//删除单条轮播数据
interface IDelete{
    bannerid:string
}
export function deleteBanner(params:IDelete){
    return instance.get('admin/banner/delete',{params})
}